// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
// import { response } from 'spdy/lib/spdy';
Vue.use(VueResource);
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
  mounted:function(){
    this.$http.get("http://192.168.10.87:8080/res").then(res =>{
      // res.setHeader("Access-Control-Allow-Origin", "*");
      console.log(res);
    },res => {
      console.log("error")
    })
  }
})
